﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;

namespace OnlineMediaAnalyzer.Models
{
    public class PartyMember
    {
        public int ID { get; set; }

        [Required(ErrorMessage = "Name is required")]
        [StringLength(64, ErrorMessage = "Name length should be less than 64")]
        public string Name { get; set; }

        public int PartyID { get; set; }
        public virtual Party Party { get; set; }

        public virtual ICollection<MemberMention> MemberMentions { get; set; }
    }
}